USAGE: xknn infile knn outimg [-l][-L]
xknn finds K-nearest neighbors for each point
in a list of x-y points
ARGUMENTS:
infile: input file with list of (x,y) pairs (ASCII)
knn: number of nearest neighbors
to calculate (int)
outimg: output image filename (TIF)
OPTIONS:
-l: prints (x,y) point with
neighbor list
-L: print Software License
for this module
Example:
points.txt:
# this is a comment
13
100 100
120 200
160 250
100 243
342 123
235 341
211 134
297 241
122 213
189 145
78 132
199 198
167 134
xknn points.txt 1 points1.tif:
xknn points.txt 2 points2.tif:
xknn points.txt 3 points3.tif:
Copyright (C) 1999 MLMSoftware Group, LLC.